package orm.inf;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import bean.entity.Book;

public interface BookMapper {
	@Select ("select * from book")
	List<Book> selectAll();
	
	@Select ("select * from book where name = #{name} ")
	Book selectName(@Param("name") String name);
	
	@Update("update book set amount = #{amount} where bid = #{bid}")
	Boolean updateAmount(Book book);
}
